package com.surfilter.service.impl;

import com.surfilter.mapper.GsxtTaskMapper;
import com.surfilter.pojo.GsxtTask;
import com.surfilter.service.TaskService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * TaskServiceImpl
 * Created by grom on 2017/4/5.
 */
@Service("taskService")
public class TaskServiceImpl implements TaskService {
    private static Logger logger = LoggerFactory.getLogger(TaskServiceImpl.class);
    @Autowired
    private GsxtTaskMapper gsxtTaskMapper;

    @Override
    @Transactional
    public int updateTaskStatus(GsxtTask task) {
        return  gsxtTaskMapper.updateTaskStatus(task);
    }

}
